Image Segmentation. A Completed Workflow From Training Samples Generation To Accuracy Assessment